home *** CD-ROM | disk | FTP | other *** search
/ Oh!X 2000 Spring / Oh!X 2000 Spring Special CD-ROM (Japan) (Part 2).7z / Oh!X 2000 Spring Special CD-ROM (Japan) (Part 2).bin / DXF / include / dmksctrl.h < prev    next >
C/C++ Source or Header  |  1999-06-16  |  5KB  |  164 lines

  1. /************************************************************************
  2. *                                                                       *
  3. *   dmksctrl.h -- Definition of IKsControl                              *
  4. *                                                                       *
  5. *   Copyright (c) 1998, Microsoft Corp. All rights reserved.            *
  6. *                                                                       *
  7. *                                                                       *
  8. *   This header file contains the definition of IKsControl, which       *
  9. *   duplicates definitions from ks.h and ksproxy.h. Your code should    *
  10. *   include ks.h and ksproxy.h directly if you have them (they are      *
  11. *   provided in the Windows 98 DDK and will be in the Windows NT 5      *
  12. *   SDK).                                                               *
  13. *                                                                       *
  14. ************************************************************************/
  15.  
  16. #ifndef _DMKSCTRL_
  17. #define _DMKSCTRL_
  18.  
  19. #pragma warning(push)
  20. #pragma warning(disable:4201)   /* Disable warnings on anonymous unions */
  21.  
  22. #include <pshpack8.h>
  23.  
  24. #include <objbase.h>
  25.  
  26. #if !defined(_NTRTL_)
  27.     #ifndef DEFINE_GUIDEX
  28.         #define DEFINE_GUIDEX(name) EXTERN_C const CDECL GUID name
  29.     #endif /* !defined(DEFINE_GUIDEX) */
  30.  
  31.     #ifndef STATICGUIDOF
  32.         #define STATICGUIDOF(guid) STATIC_##guid
  33.     #endif /* !defined(STATICGUIDOF) */
  34. #endif /* !defined(_NTRTL_) */
  35.  
  36. #ifndef STATIC_IID_IKsControl
  37. #define STATIC_IID_IKsControl\
  38.     0x28F54685L, 0x06FD, 0x11D2, 0xB2, 0x7A, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96
  39. #endif /* STATIC_IID_IKsControl */
  40.  
  41. /* 
  42.  * Warning: This will prevent the rest of ks.h from being pulled in if ks.h is 
  43.  * included after dmksctrl.h. Make sure you do not include both headers in
  44.  * the same source file.
  45.  */
  46. #ifndef _KS_
  47. #define _KS_
  48.  
  49. #if (defined(_MSC_EXTENSIONS) || defined(__cplusplus)) && !defined(CINTERFACE)
  50. typedef struct {
  51.     union {
  52.         struct {
  53.             GUID    Set;
  54.             ULONG   Id;
  55.             ULONG   Flags;
  56.         };
  57.         LONGLONG    Alignment;
  58.     };
  59. } KSIDENTIFIER, *PKSIDENTIFIER;
  60. #else
  61. typedef struct {
  62.     union {
  63.         struct {
  64.             GUID    Set;
  65.             ULONG   Id;
  66.             ULONG   Flags;
  67.         } Data;
  68.         LONGLONG    Alignment;
  69.     };
  70. } KSIDENTIFIER, *PKSIDENTIFIER;
  71. #endif
  72.  
  73. typedef KSIDENTIFIER KSPROPERTY, *PKSPROPERTY, KSMETHOD, *PKSMETHOD, KSEVENT, *PKSEVENT;
  74.  
  75. #define KSMETHOD_TYPE_NONE                  0x00000000
  76. #define KSMETHOD_TYPE_READ                  0x00000001
  77. #define KSMETHOD_TYPE_WRITE                 0x00000002
  78. #define KSMETHOD_TYPE_MODIFY                0x00000003
  79. #define KSMETHOD_TYPE_SOURCE                0x00000004
  80.  
  81. #define KSMETHOD_TYPE_SEND                  0x00000001
  82. #define KSMETHOD_TYPE_SETSUPPORT            0x00000100
  83. #define KSMETHOD_TYPE_BASICSUPPORT          0x00000200
  84.  
  85. #define KSPROPERTY_TYPE_GET                 0x00000001
  86. #define KSPROPERTY_TYPE_SET                 0x00000002
  87. #define KSPROPERTY_TYPE_SETSUPPORT          0x00000100
  88. #define KSPROPERTY_TYPE_BASICSUPPORT        0x00000200
  89. #define KSPROPERTY_TYPE_RELATIONS           0x00000400
  90. #define KSPROPERTY_TYPE_SERIALIZESET        0x00000800
  91. #define KSPROPERTY_TYPE_UNSERIALIZESET      0x00001000
  92. #define KSPROPERTY_TYPE_SERIALIZERAW        0x00002000
  93. #define KSPROPERTY_TYPE_UNSERIALIZERAW      0x00004000
  94. #define KSPROPERTY_TYPE_SERIALIZESIZE       0x00008000
  95. #define KSPROPERTY_TYPE_DEFAULTVALUES       0x00010000
  96.  
  97. #define KSPROPERTY_TYPE_TOPOLOGY            0x10000000
  98. #endif  /* _KS_ */
  99.  
  100. #ifndef _IKsControl_
  101. #define _IKsControl_
  102.  
  103. #ifdef DECLARE_INTERFACE_
  104.  
  105.  
  106. #undef INTERFACE
  107. #define INTERFACE IKsControl
  108. DECLARE_INTERFACE_(IKsControl, IUnknown)
  109. {
  110.      /* IUnknown */
  111.     STDMETHOD(QueryInterface)       (THIS_ REFIID, LPVOID FAR *) PURE;
  112.     STDMETHOD_(ULONG,AddRef)        (THIS) PURE;
  113.     STDMETHOD_(ULONG,Release)       (THIS) PURE;
  114.  
  115.     /*IKsControl*/
  116.     STDMETHOD(KsProperty)(
  117.         THIS_
  118.         IN PKSPROPERTY Property,
  119.         IN ULONG PropertyLength,
  120.         IN OUT LPVOID PropertyData,
  121.         IN ULONG DataLength,
  122.         OUT ULONG* BytesReturned
  123.     ) PURE;
  124.     STDMETHOD(KsMethod)(
  125.         THIS_
  126.         IN PKSMETHOD Method,
  127.         IN ULONG MethodLength,
  128.         IN OUT LPVOID MethodData,
  129.         IN ULONG DataLength,
  130.         OUT ULONG* BytesReturned
  131.     ) PURE;
  132.     STDMETHOD(KsEvent)(
  133.         THIS_
  134.         IN PKSEVENT Event OPTIONAL,
  135.         IN ULONG EventLength,
  136.         IN OUT LPVOID EventData,
  137.         IN ULONG DataLength,
  138.         OUT ULONG* BytesReturned
  139.     ) PURE;
  140. };
  141.  
  142. #endif /* DECLARE_INTERFACE_ */
  143. #endif /* _IKsControl_ */
  144.  
  145. #include <poppack.h>
  146.  
  147. DEFINE_GUID(IID_IKsControl, 0x28F54685, 0x06FD, 0x11D2, 0xB2, 0x7A, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96);
  148.  
  149. /* These formats are in ksmedia.h
  150.  */
  151. #ifndef _KSMEDIA_
  152.  
  153. DEFINE_GUID(KSDATAFORMAT_SUBTYPE_MIDI, 0x1D262760L, 0xE957, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00);
  154. DEFINE_GUID(KSDATAFORMAT_SUBTYPE_DIRECTMUSIC, 0x1a82f8bc,  0x3f8b, 0x11d2, 0xb7, 0x74, 0x00, 0x60, 0x08, 0x33, 0x16, 0xc1);
  155.  
  156. #endif
  157.  
  158. #pragma warning(pop)
  159.  
  160. #endif /* _DMKSCTRL */
  161.  
  162.  
  163.  
  164.